import request from '/@/utils/request';
export function GenreAPI(){
    return {
        getTableList:(params:object)=>{
            return request({
                url: '/api/admin/roadside/models',
                method: 'get',
                params,
            });
        },
        addGen:(data:object)=>{
            return request({
                url: '/api/admin/roadside/model',
                method: 'post',
                data,
            });
        },
        editGen:(data:object)=>{
            return request({
                url: '/api/admin/roadside/model',
                method: 'put',
                data,
            });
        },
        delGen:(data:object)=>{
            return request({
                url: '/api/admin/roadside/model',
                method: 'delete',
                data,
            });
        },
    }
}